import { Button } from 'antd'
import React, { useEffect, useState } from 'react'
import NewsPublish from '../../../components/news-manage/publish-manage/NewsPublish'
import usePublish from '../../../components/news-manage/publish-manage/usePublish'
export default function Published() {
    const { dataSource, handelUnpublish } = usePublish(2)
    return (
        <div>
            <NewsPublish dataSource={dataSource}
                button={(id) => <Button onClick={() => handelUnpublish(id)} type='primary'>下线</Button>}></NewsPublish>
        </div>
    )
}

